<template>

    <div class="home">

        将node_modules\cesium\Build 文件夹下面4个文件夹 复制到public文件中，：<br/>

        Assets--------------->存放导入的静态资源 <br/>
        ThirdParty--------------->存放第三方资源 <br/>
        Widgets--------------->小部件 <br/>
        workers--------------->这个还没搞清楚，后续再更新 <br/>

        <div id="cesiumContainer"></div>
    </div>

</template>

<script>

    import * as Cesium from 'cesium/Source/Cesium'
    import 'cesium/Source/Widgets/widgets.css'

    //官网注册后申请 的token
    let token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI0ZThhZmU5YS1kM2RmLTQwMzEtYjY3MS1mMjYwZDRkMTgwNWQiLCJpZCI6ODc0MjksImlhdCI6MTY0ODUzNzgzNX0.2kUTWaU73hK2PX5q6AgQngTyrZIPi3D_lX9wAfaRUTc";

    Cesium.Ion.defaultAccessToken = token;

    export default {
        name: "cesium",
        mounted() {
            new Cesium.Viewer("cesiumContainer");
        }
    }
</script>

<style scoped>

</style>